/*
 * @Author: zhangsai
 * @Date: 2018/2/7
 * @Last Modified by: zhangsai
 * @Last Modified time: 2018/2/7
 * @description: 个人中心
 */
export const api = {
    // 获取我的任务列表
    GET_MY_SCHEDULE_LIST: {
        url: '/schedule',
        method: 'get'
    },
    // 创建新日程
    CREATE_SCHEDULE: {
        url: '/schedule',
        method: 'post'
    },
    // 设置日程状态
    SET_SCHEDULE: {
        url: '/schedule',
        method: 'put'
    },
    // 删除日程
    DELETE_SCHEDULE: {
        url: '/schedule',
        method: 'delete'
    },
    // 获取全部审批
    GET_APPROVAL_LIST_ALL: {
        url: '/approval/all',
        method: 'get'
    },
    // 获取我发起的审批
    GET_APPROVAL_LIST_ME: {
        url: '/approval/me',
        method: 'get'
    },
    // 获取我待审批
    GET_APPROVAL_LIST_WAIT: {
        url: '/approval/wait',
        method: 'get'
    },
    // 获取我的消息列表
    GET_MESSAGE_LIST: {
        url: '/schedule/msg',
        method: 'get'
    },
    // 消息状态更新
    SET_MESSAGE_STATUS: {
        url: '/schedule/msg/{id}?jj={gg}',
        method: 'put'
    },
    // 修改基本资料
    SET_PERSONAL_INFO: {
        url: '/userEntity/updateProfile?id={id}&name={name}&tel={tel}&headPicture={headPicture}',
        method: 'put'
    },
    // 修改密码
    SET_PASSWORD: {
        url: '/userEntity/updatePassWord',
        method: 'put'
    },
    // 获取我的消息数量
    GET_MESSAGE_COUNT: {
        url: '/schedule/msg/count',
        method: 'get'
    },
};
